# Contributor: Magnus Sandin <magnus.sandin@gmail.com>
# Maintainer: Magnus Sandin <magnus.sandin@gmail.com>
pkgname=libltc
pkgver=1.3.2
pkgrel=0
pkgdesc="provides functionality to encode and decode LTC audio"
url="https://github.com/x42/libltc"
arch="all"
license="LGPL-3.0-only"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/x42/libltc/releases/download/v$pkgver/libltc-$pkgver.tar.gz"

build() {
	./configure --prefix="/usr" \
		    --build=$CBUILD \
		    --host=$CHOST
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

check() {
	make -j 1 check
}

sha512sums="
3b29b7da1ad9f85c62068b927abec9b3963a77558b46b3ee7681f360642570935becedcf95436574a8a7b456c7e0b414131571d71c6903139f9e7565968278a6  libltc-1.3.2.tar.gz
"
